import TabsView from '@/layouts/tabs/TabsView'

// 全局路由配置
// 内容路由需要添加在 首页 下面，如果要显示在侧边栏则需要添加 
// meta: {
//   invisible: true
// }
const routesConfig = [{
        path: '/login',
        name: '登录页',
        component: () =>
            import ('@/pages/Login/Login')
    },
    {
        path: '*',
        name: '404',
        component: () =>
            import ('@/pages/Exception/404'),
    },
    {
        path: '/403',
        name: '403',
        component: () =>
            import ('@/pages/Exception/403'),
    }, {
        path: '/',
        name: '首页',
        component: TabsView,
        redirect: '/home',
        children: [{
                path: '/home',
                name: '首页',
                meta: {
                    icon: 'user'
                },
                component: () =>
                    import ('@/pages/Home/'),
            },
            {
                path: "/test",
                name: "测试",
                des: "测试",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Test/"),
            },
    //### 自动生成 ###
            {
                path: "/user",
                name: "管理账号用户",
                des: "管理账号用户",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/User/"),
            },
            {
                path: "/userType",
                name: "用户类型",
                des: "用户类型",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/UserType/"),
            },
            {
                path: "/menu",
                name: "用户菜单",
                des: "用户菜单",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Menu/"),
            },
            {
                path: "/role",
                name: "角色",
                des: "角色",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Role/"),
            },
            {
                path: "/roleMenu",
                name: "角色菜单",
                des: "角色菜单",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/RoleMenu/"),
            },
            {
                path: "/blog",
                name: "博客",
                des: "博客",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Blog/"),
            },
            {
                path: "/blogCategory",
                name: "博客分类",
                des: "博客分类",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/BlogCategory/"),
            },
            {
                path: "/project",
                name: "项目",
                des: "项目",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Project/"),
            },
            {
                path: "/projectCategory",
                name: "项目分类",
                des: "项目分类",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/ProjectCategory/"),
            },
            {
                path: "/task",
                name: "任务",
                des: "任务",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Task/"),
            },
            {
                path: "/taskCategory",
                name: "任务分类",
                des: "任务分类",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/TaskCategory/"),
            },
            {
                path: "/taskLevel",
                name: "任务等级",
                des: "任务等级",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/TaskLevel/"),
            },
            {
                path: "/daily",
                name: "每日任务",
                des: "每日任务",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Daily/"),
            },
            {
                path: "/creditMonthBill",
                name: "每月信用卡账单",
                des: "每月信用卡账单",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/CreditMonthBill/"),
            },
            {
                path: "/creditBill",
                name: "每月信用卡账单记录",
                des: "每月信用卡账单记录",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/CreditBill/"),
            },
            {
                path: "/motion",
                name: "状态",
                des: "状态",
                meta: {
                    icon: "user"
                },
                component: () => import ("@/pages/Motion/"),
            },
    //### 自动生成 ###
        ]
    },
];

const options = {
    routes: routesConfig
}

export default options